Unity 2022.2.13

您所在的位置:网站首页 unity gpu instance Unity 2022.2.13

Unity 2022.2.13

#Unity 2022.2.13| 来源: 网络整理| 查看: 265

Core: Added: JobsUtility.ThreadIndexCount returns the maximum number of job workers that can work on a job at the same time. The job system will create a number of job worker threads that will be no greater than the number of logical CPU cores for the platform. However, since arbitrary threads can execute jobs via work stealing we allocate extra workers which act as temporary job worker threads. JobsUtility.ThreadIndexCount reflects the maximum number of job worker threads plus temporary workers the job system will ever use. As such, this value is useful for allocating buffers which should be subdivided evenly between job workers since JobsUtility.ThreadIndex and NativeSetThreadIndexAttribute will never return a value greater than JobsUtility.ThreadIndexCount. (UUM-29945)

Core: Added: JobsUtility.ThreadIndex returns the index for the current thread when executing a job, otherwise 0. When multiple threads are working on a parallel job at once, no two threads will have the same index. The range is [0, JobsUtility.ThreadIndexCount). The value returned when called from within a job is the same as the one stored in a job member decorated with Unity.Collections.LowLevel.Unsafe.NativeSetThreadIndexAttribute, otherwise 0. (UUM-29945)

Editor: Added: GetSampleMetadataAsSpan to RawFrameDataView.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3